home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 1
/
Cream of the Crop 1.iso
/
PROGRAM
/
DJLSR106.ARJ
/
BDOS.C
< prev
next >
Wrap
C/C++ Source or Header
|
1992-03-02
|
262b
|
18 lines
#include <errno.h>
#include <dos.h>
bdos(int func, unsigned dx, unsigned al)
{
union REGS r;
r.x.dx = dx;
r.h.ah = func;
r.h.al = al;
int86(0x21, &r, &r);
if (r.x.cflag)
{
errno = r.x.ax;
return -1;
}
return r.x.ax;
}